﻿create proc [dbo].[danhmucNXPTung_Xoa]
@ma_ptnx varchar(255)
as
if not exists(select * from DM_NX_PhuTung  where ma_ptnx=@ma_ptnx   )
begin
select ErrCode=0
end
else
begin
delete from DM_NX_PhuTung where ma_ptnx=@ma_ptnx
select ErrCode=1
end